package com.sms.plateform.web.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

import com.sms.plateform.common.page.PageDataLists;
import com.sms.plateform.common.page.PageProperty;
import com.sms.plateform.kernel.entity.UserInfo;
import com.sms.plateform.kernel.service.IUserInfoService;
@Controller
public class UserInfoController extends BaseController {
	@Autowired
	private IUserInfoService userInfoService;
	
	@RequestMapping("/userinfo_list")
	public String listUserInfoHandel(HttpServletRequest request,HttpServletResponse response,ModelMap model) {
		PageProperty pp = new PageProperty();
		pp.setNpage(this.getUrlParam(request, "pageNo")); // 更新页码值
		pp.setNpagesize(this.getUrlParam(request, "pageSize")); // 更新页面查询数量值
		PageDataLists<UserInfo> userInfoPageList=userInfoService.getPageDateList(pp);
		model.put("pageDataLists", userInfoPageList);
		return "user/userinfo_list";
	}
}
